package org.example.Vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import kotlin.time.TimeSource;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CommunityVO {

    private Integer id;

    private String content;

    private String fileUrl;

    private String username;

    private String avatarUrl;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Timestamp date;

    private Integer likeCount;

    private Integer commentCount;

    private Integer shareCount;

    /**
     * 上传的文件的类型 0 为图片 1 为视频
     */
    private Integer fileType;

    /**
     * 用户是否对当前内容点过赞 0 没有 1 点过
     */
    private Integer isLike;

}
